
package ch.hearc.coursJava.moo.heritage.animals;

public abstract class Mammiferes extends Animals
	{

	/*------------------------------------------------------------------*\
	|*							Constructeurs							*|
	\*------------------------------------------------------------------*/

	public Mammiferes(String nom, int tempSang)
		{
		super(nom);
		this.tempSang = tempSang;
		}

	public Mammiferes(Mammiferes source)
		{
		super(source);
		this.tempSang = source.tempSang;
		}

	/*------------------------------------------------------------------*\
	|*							Methodes Public							*|
	\*------------------------------------------------------------------*/

	@Override
	public String toString()
		{
		return "temperature : " + this.tempSang + "\n" + super.toString();
		}

	@Override
	public String nomClasse()
		{
		return super.nomClasse() + " : " + Mammiferes.class.getSimpleName();
		}

	/*------------------------------*\
	|*				Get				*|
	\*------------------------------*/

	public int getTempSang()
		{
		return this.tempSang;
		}

	/*------------------------------------------------------------------*\
	|*							Methodes Private						*|
	\*------------------------------------------------------------------*/

	/*------------------------------------------------------------------*\
	|*							Attributs Private						*|
	\*------------------------------------------------------------------*/

	public int tempSang;
	}
